<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no">
		<title>统计</title>
		<meta http-equiv="expires" content="0">
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<link rel="stylesheet" href="../../../css/reset.css" />
		<link rel="stylesheet" href="../../../css/mui.min.css" />
		<link rel="stylesheet" href="../../../css/iconfont.css" />
		<link rel="stylesheet" href="../../../css/cmms.css" />
		<link rel="stylesheet" href="../../../css/sale/statistics/saleReport.css" />
	</head>
	<style type="text/css">
		
	</style>
	<body>
		<div class="mui-content" id="saleReport" v-cloak>
		    <div class="panel saleBox" v-for="report in reportList">
		    	<p>{{report.month}}	
		    		<span class="basic-color right">检验金额{{report.amount}}</span>
				</p>
		    	<div class="saleList">
		    		<p>
		    			<span>订单数</span>
		    			<span>{{report.orderTotal}}</span>
		    		</p>
		    		<p>
		    			<span>出单客户数</span>
		    			<span>{{report.hospitalTotal}}</span>
		    		</p>
		    		
		    		<p>
		    			<span>优惠金额</span>
		    			<span class="basic-color">{{report.discountAmount}}</span>
		    		</p>
		    		<p>
		    			<span>应收金额</span>
		    			<span class="basic-color">{{report.settleAmount}}</span>
		    		</p>
		    		<p>
		    			<span>实收金额</span>
		    			<span class="basic-color">{{report.actualAmount}}</span>
		    		</p>
		    	</div>
		    </div>
		    <div class="noData" v-show="!reportList.length>0">
				<p><img src="../../../img/nodata.png"/></p>
				<p>暂无内容</p>
			</div>
		</div>
		<script src="../../../js/mui.min.js"></script>
		<script src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
		<script src="../../../js/vue.js"></script>
		<script src="../../../js/cmms.js?time=333"></script>
		<script>
			new Vue({
				el:"#saleReport",
				data:{
					endTime:'',
					startTime:'',
					reportList:[]
				},
				mounted(){
					this.loadReport();
				},
				methods:{
					loadReport(){
						let _this = this;
						/*查询销售主页信息*/
						AT.muiAjax('/partner-sale/statistics/getMouth','post',{						
							endTime: _this.endTime,
  							starTime: _this.startTime
						},
						function(res){
							console.log(res);
							_this.reportList = res;
						});
					}
				}
			})
		</script>
	</body>
</html>